﻿' NOTE: If you change the interface name "IService1" here, you must also update the reference to "IService1" in App.config.
<ServiceContract()> _
Public Interface ICustomerService

    <OperationContract()> _
    Function CreateNewCustomer(ByVal c As Customer) As Guid

End Interface

<DataContract()> _
Public Class Customer

    Private mFirstName As String
    Private mLastName As String
    Private mEmail As String
    Private mPhone As String
    <DataMember()> _
    Public Property Phone() As String
        Get
            Return mPhone
        End Get
        Set(ByVal value As String)
            mPhone = value
        End Set
    End Property

    <DataMember()> _
    Public Property Email() As String
        Get
            Return mEmail
        End Get
        Set(ByVal value As String)
            mEmail = value
        End Set
    End Property

    <DataMember()> _
    Public Property LastName() As String
        Get
            Return mLastName
        End Get
        Set(ByVal value As String)
            mLastName = value
        End Set
    End Property

    <DataMember()> _
    Public Property FirstName() As String
        Get
            Return mFirstName
        End Get
        Set(ByVal value As String)
            mFirstName = value
        End Set
    End Property

End Class


